extends Node2D



signal custom(data)


func _ready() -> void:
	print("------- 无阻断")
	PriorityCallableConnector.connect_signal(self.custom, func(data): prints(1, data), 5)
	PriorityCallableConnector.connect_signal(self.custom, func(data): prints(2, data), 10 )
	PriorityCallableConnector.connect_signal(self.custom, func(data): prints(3, data), 9)
	PriorityCallableConnector.connect_signal(self.custom, func(data): prints(4, data), 1)
	PriorityCallableConnector.connect_signal(self.custom, func(data): prints(5, data), -4)
	PriorityCallableConnector.connect_signal(self.custom, func(data): prints(6, data), 20)
	custom.emit("aaa")
	
	
	print("------- 添加阻断")
	PriorityCallableConnector.connect_signal(self.custom, func(data): 
		# 进行阻断执行
		PriorityCallableConnector.prevent_signal(self.custom)
	, 8)
	custom.emit("aaa")
	
	
	print("------- 替换参数")
	PriorityCallableConnector.connect_signal(self.custom, func(data): 
		# 替换参数
		PriorityCallableConnector.replace_params(self.custom, [1111])
	, 0)
	custom.emit("aaa")
	

